/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tdp_precioCriteria extends AbstractORMCriteria {
	public final IntegerExpression pre_id;
	public final IntegerExpression pre_monto;
	public final StringExpression pre_fecha;
	
	public Tdp_precioCriteria(Criteria criteria) {
		super(criteria);
		pre_id = new IntegerExpression("pre_id", this);
		pre_monto = new IntegerExpression("pre_monto", this);
		pre_fecha = new StringExpression("pre_fecha", this);
	}
	
	public Tdp_precioCriteria(PersistentSession session) {
		this(session.createCriteria(Tdp_precio.class));
	}
	
	public Tdp_precioCriteria() throws PersistentException {
		this(orm.PruebaPDS1PersistentManager.instance().getSession());
	}
	
	public Tda_tipoGasolinaCriteria createTda_tipoGasolinaCriteria() {
		return new Tda_tipoGasolinaCriteria(createCriteria("ORM_Tda_tipoGasolina"));
	}
	
	public Tdp_precio uniqueTdp_precio() {
		return (Tdp_precio) super.uniqueResult();
	}
	
	public Tdp_precio[] listTdp_precio() {
		java.util.List list = super.list();
		return (Tdp_precio[]) list.toArray(new Tdp_precio[list.size()]);
	}
}

